package com.aorise.model.organ;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * @Author:cat
 * @Desicription: 组织架构修改入参实体类
 * @Date:Created in 2019-05-23
 * @Modified By:
 */
@Data
@ApiModel
public class OrganEditVO {

    @ApiModelProperty (value = "主键")
    @NotNull(message = "主键不能为空")
    private Integer id;

    @ApiModelProperty (value = "组织名称")
    @NotNull(message = "组织名称不能为空")
    private String oName;

    @ApiModelProperty (value = "父级ID")
    @NotNull(message = "父级ID不能为空")
    private Integer parentId;

    @ApiModelProperty (value = "描述")
    private String description;

    @ApiModelProperty (value = "状态")
    private Integer state;

    @ApiModelProperty (value = "修改人")
    @NotNull(message = "修改人不能为空")
    private Integer editUser;


    @Override
    public String toString() {
        return "OrganEditVO{" +
                "id=" + id +
                ", oName='" + oName + '\'' +
                ", parentId='" + parentId + '\'' +
                ", description='" + description + '\'' +
                ", state=" + state +
                ", editUser=" + editUser +
                '}';
    }



}
